home *** CD-ROM | disk | FTP | other *** search
/ Software Vault: The Gold Collection / Software Vault - The Gold Collection (American Databankers) (1993).ISO / cdr31 / pk_ced.zip / PK-CED.DOC < prev   
Text File  |  1993-05-03  |  5KB  |  143 lines

  1.  
  2. File: PK-CED.DOC
  3.  
  4. This file defines CED synonyms that make the operation of PK361
  5. easier to remember, easier to type, and therefore easier to use.
  6. If you already know about CED and PK361, skip to the section 
  7. called THE SYNONYMS.  
  8.  
  9.                          ABOUT CED
  10.  
  11. CED was written, copyrighted, and placed in the public domain by
  12. Christopher Dunford. It is one of the most useful programs around.
  13. If you don't have it, get it! It's available on most bulletin 
  14. boards.
  15.                              
  16. CED allows fast editing of DOS commands. Previously-used DOS 
  17. commands can be recalled from a command stack using the up- and 
  18. down-arrow keys. There are many other features in CED, but the 
  19. one we are interested in now is CED's synonym or aliasing 
  20. ability.  
  21.  
  22. If you create an ASCII configuration file for CED called, say, 
  23. CED.CFG, with the following lines 
  24.  
  25. SYN c       copy
  26. SYN d       dir
  27. SYN sy      ^cd \symph^symphony
  28.                      
  29. and then invoke CED from the DOS prompt by typing
  30.  
  31. CED -fCED.CFG
  32.  
  33. then, through the good graces of CED, DOS will henceforth interpret
  34.  
  35. c AS copy
  36. d AS dir
  37. and
  38. sy AS cd \symph  FOLLOWED BY ANOTHER COMMAND symphony.
  39.  
  40. This is aliasing.
  41.  
  42.                         ABOUT PK361
  43.  
  44. PK361 is a shareware product from the fertile mind of Phil Katz.
  45. It is an archiving utility used to compress files and combine
  46. them together. Almost all bulletin boards use an archiving 
  47. process on their files; hence their use of the file extension 
  48. .ARC.  
  49.  
  50. PK361.EXE is a self-de-arcing file that produces two primary
  51. tools:  PKPAK and PKUNPAK. PKPAK arcs files; PKUNPAK de-arcs 
  52. them. In my opinion PKPAK and PKUNPAK are superior to the older 
  53. ARC.COM program produced by SEA.  
  54.  
  55. The primary advantage of the PK package is that the ARC file 
  56. itself and the constituent files within it can be commented and 
  57. these comments can be seen without actually de-arcing the whole 
  58. thing. Thus what you see upon query will look something like what 
  59. you get when you ask for a file listing in a bulletin board area. 
  60. Phil also claims his PK series is very fast.  
  61.  
  62.                         THE SYNONYMS
  63.  
  64. One difficulty with the PK series is remembering the command
  65. structure and (sometimes) even which program to use. The old ARC 
  66. series had such subsets as ARCV, ARCE, ARCA. Many of us used 
  67. these not because they loaded faster (which they did), but 
  68. because we didn't have to bother to remember the ARC command 
  69. syntax.  
  70.  
  71. The following lines, included in your CED configuration file
  72. (probably called CED.CFG or some such), will allow the same sort 
  73. of mnemonic operation for the PK series.
  74.  
  75. SYN pka   pkpak ax
  76. SYN pkac  pkpak acx
  77. SYN pkc   pkpak cx
  78. SYN pkd   pkpak d
  79. SYN pke   pkunpak
  80. SYN pkl   pkunpak -cm
  81. SYN pkp   pkunpak -pa
  82. SYN pku   pkpak -ux
  83. SYN pkuc  pkpak -ucx
  84. SYN pkv   pkunpak -vv
  85. SYN pkvc  pkpak -vc
  86.  
  87. These commands are included here in the separate file CED.PK so 
  88. that you can just copy them into your CED.CFG file with an 
  89. editor.  
  90.  
  91. I assume the correspondence is obvious, but just in case --
  92.  
  93. pka   A)dd with arc file comment only
  94. pkac  A)dd with constituent file C)omments too
  95. pkc   C)omments only are added
  96. pkd   D)elete              
  97. pke   E)xtract
  98. pkl   L)ist constituent file(s) using the more feature
  99. pkp   P)rint constituent file(s) in ASCII mode
  100. pku   U)pdate with arc file comment only
  101. pkuc  U)pdate with constituent file C)omments too
  102. pkv   V)erbose list of files
  103. pkvc  V)erbose list of files including C)omments
  104.  
  105. One example:
  106.  
  107. PKE MUCH *.COM D:\
  108.  
  109. will de-arc all .COM files contained in the arcfile MUCH.ARC
  110. and place them in the root directory of drive D:
  111.  
  112. These should do most of what you want to do. I have not included 
  113. the add-to-arc-then-delete-file option because I think it's 
  114. dangerous.  If something goes awry, you may be left with deleted 
  115. files you want back. As the disk get fuller (and that is probably 
  116. why you arcing in the first place), the probability increases 
  117. that DOS will write over the deleted files so that even Norton or 
  118. Mace can't come to the rescue.  
  119.  
  120.                         THE .BAT ALTERNATIVE
  121.  
  122. Personally I hate little BAT files and with CED have been able to 
  123. eliminate most of them. But if you like the little devils, you 
  124. can achieve the same mnemonics.
  125.  
  126. For example, constructing PKA.BAT with the following single line:
  127.  
  128. pkpak ax %1 %2 %3 %4 %5 %6 %7 %8 %9
  129.  
  130. will probably get the job done.
  131.  
  132.                         A BRAINTEASER
  133.                                      
  134. What would the following command do?
  135. SYN pkx ^pkunpak  %1 %2^%2 %3 %4 %5^del %2
  136. CAUTION! Experiment with this only on a ram disk.
  137.  
  138.  
  139. John Pearson
  140. 09/16/88
  141. can be reached at
  142. PC Pursuit's XBBS
  143.